package com.atguigu.gmall.order;

import com.atguigu.gmall.common.interceptor.annotation.EnableReqHeaderInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author:lyd
 * @Date:2023/9/3 22:32
 * @Version:1.0
 * @Description
 **/

@EnableFeignClients(basePackages = {
        "com.atguigu.gmall.feign.cart",
        "com.atguigu.gmall.feign.product",
        "com.atguigu.gmall.feign.user",
        "com.atguigu.gmall.feign.ware"
})
@EnableReqHeaderInterceptor
@MapperScan("com.atguigu.gmall.order.mapper")
@SpringCloudApplication
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
